package com.woniu.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杜岷芫
 * @since 2024年07月12日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("curriculum_order_evaluation")
public class CurriculumOrderEvaluation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课表订单评价id
     */
    @TableId(value = "curriculum_evaluation_id", type = IdType.AUTO)
    private Integer curriculumEvaluationId;

    /**
     * 课id
     */
    @TableField("class_id")
    private Integer classId;

    /**
     * 课表订单id
     */
    @TableField("curriculum_order_id")
    private String curriculumOrderId;

    /**
     * 教练id
     */
    @TableField("coach_id")
    private Integer coachId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 评价时间
     */
    @TableField("evaluation_time")
    private String evaluationTime;

    /**
     * 评价内容
     */
    @TableField("evaluation_content")
    private String evaluationContent;

    /**
     * 评价图片（json数组）
     */
    @TableField("evaluation_img")
    private String evaluationImg;

    /**
     * 评分
     */
    @TableField("score")
    private Double score;


    public <E> List<E> getChildren() {
        this.curriculumEvaluationId = curriculumEvaluationId;
        this.classId = classId;
        this.curriculumOrderId = curriculumOrderId;
        this.coachId = coachId;
        this.userId = userId;
        this.evaluationTime = evaluationTime;
        this.evaluationContent = evaluationContent;
        this.evaluationImg = evaluationImg;
        this.score = score;
        return null;
    }

    public void setChildren(ArrayList<Object> objects) {
        this.curriculumEvaluationId = curriculumEvaluationId;
        this.classId = classId;
        this.curriculumOrderId = curriculumOrderId;
        this.coachId = coachId;
        this.userId = userId;
        this.evaluationTime = evaluationTime;
        this.evaluationContent = evaluationContent;
        this.evaluationImg = evaluationImg;
        this.score = score;
    }
}
